﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class SYS_GROUPUSER : BusinessObject
    {
        public int GroupID { get; set; }
        public int UserID { get; set; }
        public bool? IsUse { get; set; }

        public List<SYS_USER> lstUser = new List<SYS_USER>();
        public List<SYS_GROUP> lstGroup = new List<SYS_GROUP>();

        public SYS_GROUPUSER()
        {
            AddRule(new ValidateRequired("UserID"));
            AddRule(new ValidateRequired("GroupID"));
        }

        public SYS_GROUPUSER(int groupID, int userID, bool? isUse)
            : this()
        {
            GroupID = groupID;
            UserID = userID;
            IsUse = isUse;
        }
    }
}
